package com.colorful.insuranceproject.base;

import android.graphics.Color;
import android.view.ViewGroup;
import android.widget.TextView;

import com.colorful.insuranceproject.R;


/**
 * Created by john on 2016/8/9.
 */
public abstract class ListActivity extends com.lovely3x.common.activities.ListActivity{

    @Override
    protected void addTitleHeader(ViewGroup titleContainer) {
        super.addTitleHeader(titleContainer);
        getTitleContainer().setBackgroundColor(getColor(R.color.colorPrimary, true));
        getTvTitle().setTextColor(Color.WHITE);
        getIvBack().setImageResource(R.drawable.tab_left);
        getTitleContent().setBackgroundColor(getColor(R.color.base_bg, true));
    }


    public TextView addRightBtn(String text, int id) {
        TextView tv = super.addRightBtn(text, id);
        tv.setTextColor(Color.WHITE);
        return tv;
    }
}
